package com.joymart.common.model;

import lombok.Getter;

import java.time.LocalDateTime;

public class Range {

    public static Range of(LocalDateTime start, LocalDateTime end) {
        return new Range(start, end);
    }

    public Range() {
    }

    private Range(LocalDateTime start, LocalDateTime end) {
        this.start = start;
        this.end = end;
    }

    @Getter
    private LocalDateTime start;
    @Getter
    private LocalDateTime end;
    @Override
    public String toString() {
        return "[" +
                "开始时间: " + start +
                ", 结束时间: " + end +
                "]";
    }
}
